from flask import Flask

from .flask_sse import init_sse, sse
from .flask_tokencode import init_token_code, tc
from .init_dotenv import init_dotenv
from .init_migrate import init_migrate
from .init_model import init_databases, db, ma


def init_plugs(app: Flask) -> None:
    init_databases(app)
    init_migrate(app, db)
    init_dotenv()
    init_sse(app)
    init_token_code(app)
